package com.easyjob.entity.vo;
import com.easyjob.annotation.VerifyParam;
import com.easyjob.entity.po.ExamQuestionItem;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
@Data
public class QuestionInfoVo {

    /**
     * 问题ID
     */
    private Integer questionId;

    /**
     * 标题
     */
    @VerifyParam(required = true)
    private String title;

    /**
     * 难度
     */
    @VerifyParam(required = true)
    private Integer difficultyLevel;

    /**
     * 问题类型 0:判断 1:单选题 2:多选
     */
    @VerifyParam(required = true)
    private Integer questionType;

    /**
     * 问题描述
     */
    private String question;

    /**
     * 答案
     */
    @VerifyParam(required = true)
    private String questionAnswer;

    /**
     * 回答解释
     */
    @VerifyParam(required = true)
    private String answerAnalysis;

    private String userAnswer;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    private List<ExamQuestionItem> questionItemList;

    private Integer sort;

}
